package com.music.mysongs.fragment.main

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.music.mysongs.R
import com.music.mysongs.activity.ChatRoomActivity
import com.music.mysongs.utils.myGoActivity
import kotlinx.android.synthetic.main.fragment_chat.*

class ChatFragment : Fragment() {
    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
        imgHelper_chat.setOnClickListener {
            myGoActivity(requireContext(), ChatRoomActivity::class.java)
        }
    }

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        super.onCreateView(inflater, container, savedInstanceState)
        return inflater.inflate(R.layout.fragment_chat, container, false)
    }
}